#pragma once
#include <string>
#include <vector>
#include <boost\function.hpp>
#include "HandlCommand.h"
#include "RspMsg.h"
typedef boost::function<void(RspMsg aRsp) > DBResultHandle;
typedef boost::function<void(HandlCommand aCmd) > DBExecuteHandle;
class DataBaseInterface
{
public:
	DataBaseInterface(void);
	virtual ~DataBaseInterface(void);

	virtual void SetResultHandle( DBResultHandle aHandle)
	{
		mResultHandle = aHandle;
	}
	virtual DBExecuteHandle GetExecuteHandle() = 0;
protected:
	DBResultHandle  mResultHandle;

};

